<div class="lftnav">
    <?php
    if($this->params['controller']=='blogs')
    {
        ?>
 <div class="title">Blog</div>
 <div class="wireframemenu">
   <ul>
       <?php
    $cats = $this->requestAction('/blogs/categorylist');
       // $j=1;
        if(!empty ($cats)){       
        foreach($cats as $cat) {
        ?>        
     <li><a  href="<?php echo Configure::read('base_url');?>blogs/postsbycategory/<?php echo $cat['BlogCategory']['id'];?>">
      <?php
     echo $cat['BlogCategory']['title'];
     ?></a></li>
        <?php
        }
     }else{?>
         <li><a  href="#">No data found.</a></li>
        <?php
     }
        ?>
   </ul>
 </div>
        <?php
    }elseif($this->params['controller']=='user_agreements'){
        ?>
<div class="title">User Agreement</div>
         <div class="wireframemenu">
            <ul>           
             <?php
    //$cats = $this->requestAction('/blogs/categorylist');
       // $j=1;
        if(!empty ($cmspages)){
        foreach($cmspages as $cmspage) {
        ?>
     <li><a  href="<?php echo Configure::read('base_url');?>user_agreements/index/<?php echo $cmspage['Cmspage']['id'];?>">
      <?php
     echo $cmspage['Cmspage']['title'];
     ?></a></li>
        <?php
        }
     }else{?>
         <li><a  href="#">No data found.</a></li>
        <?php
     }
        ?>
            </ul>
        </div>
    <?php
    }elseif($this->params['controller']=='about_us'){
        ?>
<div class="title">About Us</div>
         <div class="wireframemenu">
            <ul>
             <?php
    //$cats = $this->requestAction('/blogs/categorylist');
       // $j=1;
        if(!empty ($cmspages)){
        foreach($cmspages as $cmspage) {
        ?>
     <li><a  href="<?php echo Configure::read('base_url');?>about_us/index/<?php echo $cmspage['Cmspage']['id'];?>">
      <?php
     echo $cmspage['Cmspage']['title'];
     ?></a></li>
        <?php
        }
        ?>
     <li><a  href="<?php echo Configure::read('base_url');?>about_us/faqs/">
                FAQs
          </a></li>
         <li><a  href="<?php echo Configure::read('base_url');?>blogs/">
                Blog
          </a></li>
        <?php
     }else{?>
         <li><a  href="#">No data found.</a></li>
        <?php
     }
        ?>
            </ul>
        </div>
    <?php
    }elseif($this->params['controller']=='helps'){
        ?>
<div class="title">Help</div>
        <div class="wireframemenu">
        <ul>           
            <li>
                <a href="#buying"><b>BUYING</b></a>
            </li>  
            <li>
                <a href="#negotiation"><b>NEGOTIATION</b></a>
            </li>  
            <li>
                <a href="#payment"><b>PAYMENT</b></a>
            </li>  
            <li>
                <a href="#selling"><b>SELLING</b></a>
            </li>  
            <li>
                <a href="#listing"><b>CREATE A LISTING</b></a>
            </li>  
            <li>
                <a href="#managing"><b>MANAGING LISTING</b></a>
            </li>  
            <li>
               <a href="#rules"><b>RULES</b></a>
            </li>  
            <li>
                <a href="#transaction"><b>TRANSACTION DISPUTES AND RESOLUTIONS</b></a>
            </li>                         
        </ul>
    </div>
    <?php
    }
        ?>
    </div>